#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "snakedialog.h"
#include <QTest>
#include<QMessageBox>
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void keyPressEvent(QKeyEvent* key);
public:
    int dir,predir;
    SnakeNode *food;
 private slots:
    void Triggering(QAction *ac);
private:

    Ui::MainWindow *ui;
    SnakeDialog *snake;
};

#endif // MAINWINDOW_H
